﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FigureDraw;

namespace FigureDrawApp.Helper
{
    public class MyConverter
    {
        private MyConverter()
        {
        }

        public static MyPoint MyPointConverter(Point input)
        {
            return new MyPoint(input.X, input.Y);
        }

        public static MyColorInfo MyColorInfoConverter(Color input)
        {
            return new MyColorInfo(input.R, input.G, input.B);
        }

        public static Color ColorConverter(MyColorInfo input)
        {
            return Color.FromArgb(input.R, input.G, input.B);            
        }

    }
}
